package Action;
import com.opensymphony.xwork2.ActionSupport;

import domain.*;
import UserService.*;
public class Register extends ActionSupport{
	private TUserInfo user;
	private TUser use;
	private UserService UserService;
	public TUserInfo getUser() {
		return user;
	}
	public void setUser(TUserInfo user) {
		this.user = user;
	}
	public TUser getUse() {
		return use;
	}
	public void setUse(TUser use) {
		this.use = use;
	}
	public UserService getUserService() {
		return UserService;
	}
	public void setUserService(UserService userService) {
		UserService = userService;
	}
	public String Register(){
		TUserInfo User;
		TUser U;
		UserService=new UserServiceImpl();
		User=UserService.Register(user);
		U=UserService.Register1(use);
		if(user!=null&&use!=null){
			return "success";
		}else{
			return "input";
		}
		}
	}
